<h1><?php echo $category->getName() ?></h1>
<h2><?php echo $category->getDescription() ?></h2>

<?php foreach ($photos as $photo): ?>
    <div class="photo-list photo-container">
        <a class="photo-list photo" href="<?= url_for('/photo/' . $photo->getId()) ?>"><img src="<?= $photo->getLink() ?>"/></a>
        <a class="photo-list photo-name" href="<?= url_for('/photo/' . $photo->getId()) ?>"><?= $photo->getName() ?></a>
        <a class="photo-list photo-user-name" href="<?= url_for('/user/' . $photo->getUser()->getId()) ?>">
            Автор: <b><?= $photo->getUser()->getNickname() ?></b>
        </a>
        <div class="photo-list photo-album-name">Альбом: <b><?= $photo->getAlbum()->getName() ?></b></div>
    </div>
<?php endforeach; ?>
